package com.adou.d8;

public class StaticDemo {
    public static void main(String[] args) {
        Student.name = "袁华";
        Student s1 = new Student();
        s1.name = "马冬梅";

        Student s2 = new Student();
        s2.name = "秋雅";

        System.out.println(s1.name);// 类中只有一份

        // 实例对象
        s1.age = 18;
        s2.age = 23;

        System.out.println(s1.age); // 实例对象 属于每个对象的

//        System.out.println(Student.age); // 报错



    }

}
